import { request } from '@/network/request.js'

// 轮播图
export const getBanner = () => {
  return request({
    url: '/banner',
  })
}
// 推荐歌曲
export const getRecommendSong = () => {
  return request({
    url: '/personalized?limit=12'
  })
}
// 独家放送
export const getPersonalMv = () => {
  return request({
    url: '/personalized/privatecontent'
  })
}
// 最新音乐
export const getnewMusic = () => {
  return request({
    url: '/personalized/newsong'
  })
}
// 推荐mv
export const getMv = () => {
  return request({
    url: '/personalized/mv'
  })
}
// 获取歌曲详情
export const getSongDetail = (ids) => {
  return request({
    url: `/song/detail`,
    params: {
      ids
    }
  })
}
// 播放音乐
export const getSongUrl = (id) => {
  return request({
    url: '/song/url',
    params: {
      id
    }
  })
}
// 获取歌词
export const getLyric = (id) => {
  return request({
    url: '/lyric',
    params: {
      id
    }
  })
}
// 获取歌单所有信息
export const getSongList = (id) => {
  return request({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}
// 获取歌曲详情
export const getSongDetailById = (...ids) => {
  return request({
    url: `/song/detail?ids=${ids}`
  })
}
// 获取mv详情
export const getMvDetail = (mvid) => {
  return request({
    url: '/mv/detail',
    params: {
      mvid
    }
  })
}
// 获取mv视频
export const getMvVideo = (id) => {
  return request({
    url: '/mv/url',
    params: {
      id
    }
  })
}
// 获取相关mv
export const getConnectMv = (mvid) => {
  return request({
    url: '/simi/mv',
    params: {
      mvid
    }
  })
}


